home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 29
/
029.d81
/
card control
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
7KB
|
268 lines
10 gosub60100:print"[147][142]":poke650,128
100 poke53280,0:poke53281,0:poke646,5
110 printchr$(147):forx=1to10:print:next
150 n=100:dimd$(n),b$(n),e$(n),f$(n),l$(n),g$(40):bk$="[175]"
152 c$(1)="d":c$(2)="c":c$(3)="r":c$(4)="q"
155 print"[147][158] credit card control
156 [153]"print usrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusr
160 forx=1to6:print:next
170 printtab(14)"[158]*** menu ***":print
180 printtab(5)"[154]d - [159]display credit card data
190 [153][163]5)"contc - opencreate/add credit card data
200 printtab(5)"[154]r - [159]report lost or damaged cards
210 [153][163]5)"contq - openquit
220 print"[154]"tab(11)"enter selection: [157][153]";bk$;"[158]";
225 mo=16:nc=1:gosub60500
235 forb=1to4:ifc$(b)=a$thena=b:goto250
236 next
237 goto220
250 onagoto280,500,690,60000
260 :
270 :
280 print"[147][158] display credit card data
281 [153]"print usrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusr
285 gosub1240:ifabthen155
286 gosub1400
287 gosub1350:iferthen155
290 print"credit cards on file to date:":print
300 print"name[146]"tab(16)"acct. #[146]"tab(31)"exp date[146]
310 [153]"----"[163]16)"-------"[163]30)"--------
320 k1=0
330 forx=1ton
340 input#1,d$(x)
350 ifd$(x)="end"then440
360 ifk1<17then400
370 print:printtab(8)"press return[146] to continue":print
380 geta$:ifa$<>chr$(13)then380
390 k1=0
400 input#1,b$(x),e$(x),f$(x),l$(x)
410 printd$(x);tab(10);b$(x);tab(33);e$(x)
420 k1=k1+1
430 nextx
440 close1:print:print"end of file.":print:printtab(12)"press m for menu
450 [161]a$:[139]a$[178]""[167]450
460 [139]a$[179][177]"m"[167]450
470 [156]:[137]150
480 :
490 :
500 [153]"loadsys create/add credit card data
501 print"[153] [183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]
505 x[178]1
510 [141]1240:[141]1260:[141]1440:[153][199](147)
520 [129]x[178]x[164]n
530 [153]"load listtype endlist to exit.
540 print"entry # [153]";x:print
545 print" [153][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][145][145]"
550 print"[129]name of card:[158]";bk$;
555 mo=190:nc=30:gosub60500:d$(x)=a$
560 ifd$(x)="end"then670
565 print" [153][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][145][145]"
570 print"[129]account #:[158]";bk$;
575 mo=2:nc=30:gosub60500:b$(x)=a$
577 print" [153][183][183][183][183][183][145][145]
580 [153]"forexpiration date (ex: 01/84):sys";bk$;
585 mo[178]130:nc[178]5:[141]60500:e$(x)[178]a$
587 [153]" printusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrononon
590 print"[129]company p.o. or street address"
595 print":[158]";bk$;:nc=38:mo=190:gosub60500:f$(x)=a$
597 print" [153][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][145][145][145]
600 [153]"forcity state & zip (sorry, no commas.)":[153]":sys";bk$;
605 mo[178]190:nc[178]38:[141]60500:l$(x)[178]a$
620 [153]:[153]"is data correct (y/n)
630 getz$:ifz$=""then630
640 ifz$="y"then660
650 ifz$="n"thenprint"[145] re-enter data[146] ":fora=1to2000:next:goto530
660 print:print:nextx
670 close2:print"[147]";:goto1450
680 :
690 printchr$(147):gosub1440:print
700 print"[129]your name:[158]";bk$;:mo=190:nc=20:gosub60500:gosub 60600:yn$=a$
710 print"[129]street or post office:[158]";bk$;:gosub60500:gosub 60600: ma$=a$
720 print"[129]city:[158]";bk$;:gosub60500:gosub 60600:ci$=a$
730 print"[129]state & zip code:[158]";bk$;:gosub60500:gosub 60600:sz$=a$
740 print"[129]today's date:[158]";bk$;:gosub60500:td$=a$
750 close2
760 printchr$(147):print
770 gosub1250:gosub1400:gosub1710:gosub1350:iferthen155
780 forx=1ton
790 input#1,d$(x)
800 ifd$(x)="end"then900
810 input#1,b$(x),e$(x),f$(x),l$(x)
820 print"[155]do you want a report for: ";d$(x):print"press: y [155]or n"
830 getq1$:ifq1$=""then830
840 ifq1$="n"then870
845 ifq1$="y"then850
846 goto830
850 print"[155]is card lost or destroyed:":print"press: l [155]or d
855 [161]w$:[139]w$[178]""[167]855
856 [139]w$[178]"l"[167]w$[178]"lost":[137]860
857 [139]w$[178]"d"[167]w$[178]"destroyed":[137]860
858 [137]855
860 [141]920
870 [139]st[178]0[167][130]x
880 [139]st[178]64[167]900
890 [139]st[179][177]0[175]st[179][177]64[167][153]"error...";st:[160]1:[128]
900 [160]1:[153]"end of file":[129]t[178]1[164]1000:[130]:[156]:[137]150
910 :
920 :
930 sn$[178]"(NULL)incerely,"
940 [159]4,4,7
950 [152]4
960 [152]4,""[163]80[171][195](ma$));ma$
970 [152]4,""[163]79[171][195](ci$)[171][195](sz$));ci$;" ";sz$
980 [152]4,""[163]80[171][195](td$));td$
990 a$[178]d$(x):[141]60600:[152]4,a$
1000 a$[178]f$(x):[141]60600:[152]4,a$
1010 a$[178]l$(x):[141]60600:[152]4,a$
1020 [152]4
1030 [152]4,"(NULL)val: atnccount # ";b$(x)
1040 [152]4
1050 [152]4,"str$ear (NULL)ir:
1060 print#4
1070 print#4,""tab(5)"[201]n regard to the above account,";
1075 print#4," [201] am reporting that my card was
1080 [152]4
1090 [152]4,w$;" on or about the above date.
1100 print#4:print#4
1110 print#4,""tab(5)"[208]lease take any necessary action";
1115 print#4," to insure that there is no
1120 [152]4
1130 [152]4,"unauthorized use of this card,";
1135 [152]4," and please issue a replacement as
1140 print#4
1150 print#4,"soon as possible.
1160 [152]4:[152]4
1170 [152]4,""[163]5)"(NULL)lease contact me if";
1175 [152]4," additional information is needed.
1180 forx=1to4:print#4:next
1190 print#4,""tab(70-len(sn$));sn$
1200 forx=1to4:print#4:next
1210 print#4,""tab(75-len(yn$));yn$
1220 print#4:close4
1230 return
1240 ab=.
1245 print" [153][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][145][145]
1250 [153]"opencardholder's name:sys";bk$;:mo[178]190:nc[178]16:[141]60500:fi$[178]a$
1255 [139]a$[178]""[167]ab[178]1
1256 [142]
1260 [153]:[153]"cont(acont)dd to existing file
1265 print"[154](n[154])ew file":print"[154](r[154])eturn to menu
1270 [161]z$:[139]z$[178]""[167]1270
1280 [139]z$[178]"n"[167][142]
1290 [139]z$[178]"a"[167]1620
1300 [139]z$[178]"r"[167][156]:[137]150
1310 [139]z$[179][177]"n"[175]z$[179][177]"a"[175]z$[179][177]"r"[167]1270
1340 [142]
1350 er[178].:[141]1730
1360 [161]z$:[139]z$[178]""[167]1360
1361 [139]z$[178]"t"[167]1370
1362 [159]3,8,3,""[170]fi$[170]"":[160]3:[159]15,8,15:[132]15,a$,b$:[160]15
1363 er[178].:[139]a$[178]"00"[167]1380
1364 [153]"defdisk error:";a$,b$
1365 [129]a[178]1[164]2000:[130]
1366 er[178]1:[142]
1370 [139]z$[178]"t"[167][159]1,1,0,fi$:[142]
1380 [139]z$[178]"d"[167][159]1,8,8,fi$[170]",s,r":[142]
1390 [139]z$[179][177]"t"[175]z$[179][177]"d"[167]1360
1400 [153]:[153]"open insert source file and press return wait
1410 getz$
1420 ifz$<>chr$(13)then1410
1430 return
1440 open2,0:return
1450 :
1460 gosub1400:gosub1560
1470 forx=1ton
1480 print#1,d$(x):print#1,b$(x):print#1,e$(x):print#1,f$(x):print#1,l$(x)
1490 ifd$(x)="end"then1510
1500 nextx
1510 close1
1515 open15,8,15:input#15,a$,b$:close15:print"[154]==>[159]";a$,b$
1520 print:print"do you want a backup copy (y/n)?
1530 [161]z$:[139]z$[178]""[167]1530
1540 [139][200](z$,1)[178]"y"[167]1460
1550 [156]:[137]150
1560 [141]1730
1565 ad$[178]"0":[139]ad[167]ad[178].:ad$[178]"@0"
1570 [161]z$:[139]z$[178]""[167]1570
1580 [139]z$[178]"t"[167][159]1,1,1,fi$:[142]
1590 [139]z$[178]"d"[167][159]1,8,8,[170]ad$[170]":"[170]fi$[170]",s,w":[142]
1600 [139]z$[179][177]"t"[175]z$[179][177]"d"[167]1570
1610 :
1620 :
1630 [141]1400:[141]1350
1635 [139]er[167]155
1640 [153][199](147)
1650 [129]x[178]1[164]n
1660 [132]1,d$(x),b$(x),e$(x),f$(x),l$(x)
1670 [139]d$(x)[178]"end"[175]st[178]64[167]1700
1680 [139]st[178]0[167][130]x
1690 [139]st[179][177]0[175]st[179][177]64[167][153]"error..."st:[160]1:[128]
1700 [160]1:ad[178]1:[142]
1710 [153]" turn on printer and pres